#include<stdio.h>
#include<unistd.h>
int main(){
  int val=888;
  pid_t ret = fork();
  if(ret>0){
    //parent
    while(1){
      sleep(1);
    printf("%d %p\n",val,&val);
    }
  }
  else if(ret==0){
    //child
    while(1){
      sleep(1);
      val=999;
      printf("%d %p\n",val,&val);
    }
  }
  else{
    perror("fork error!!!");
    return 1;
  }
  return 0;
}

